import requests


def get_header():
    req_body = {"mobile": "13800000002", "password": "123456"}
    resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                         headers={"Content-Type": "application/json"},
                         json=req_body)
    token = resp.json().get("data")
    get_header = {"Content": "application/json", "Authorization": token}

    return get_header

if __name__ == '__main__':
    get_header = get_header()
    print(get_header)
